package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.exception4project.CheckItemDeleteFailException;
import com.itheima.pojo.CheckItem;

public interface CheckItemService {

    /**
     * 新增检查项
     * @param checkItem
     */
    public void add(CheckItem checkItem);

    /**
     * 分页模糊查询 和 分页查询全部
     * @param queryPageBean
     * @return
     */
    public PageResult get4Page(QueryPageBean queryPageBean);

    /**
     * 删除检查项 by id
     * @param id
     * @throws CheckItemDeleteFailException
     */
    public void deleteCheckItem(Integer id) throws CheckItemDeleteFailException;

    /**
     * 更新检查项
     * @param checkItem
     */
    public void updateCheckItem(CheckItem checkItem);
}
